package com.xiaoyu.lanling.feature.serverpush.event

import `in`.srain.cube.request.JsonData
import com.xiaoyu.base.serverpush.event.ServerPushBaseEvent
import com.xiaoyu.lanling.event.user.UserVoiceUpdateEvent
import com.xiaoyu.lanling.feature.profile.model.UserVoiceModel

class AppVoiceUpdatePush(val jsonData: JsonData) : ServerPushBaseEvent(jsonData) {

    override fun takeAction() {
        setComplete()
        UserVoiceUpdateEvent(UserVoiceModel(jsonData.optJson("voice"))).post()
    }
}